﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using EntityFrameworkCFSem05.mapping;

namespace EntityFrameworkCFSem05
{
    public class OlimpiadasContext:DbContext
    {
        public DbSet<Participante> Participantes { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new ParticipanteMap());
        }
    }
}
